//
//  UserUsViewController.m
//  HeadYang
//
//  Created by sunmingming on 15/7/12.
//  Copyright (c) 2015年 xiaoluoli. All rights reserved.
//

#import "UserUsViewController.h"

@interface UserUsViewController ()

@property(nonatomic,weak) IBOutlet UITextView *mainTextView;

@end

@implementation UserUsViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.title = @"关于我们";
        self.navigationItem.leftBarButtonItem =
        [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"arrow_white"]
                                         style:UIBarButtonItemStyleDone
                                        target:self
                                        action:@selector(backPressed:)];
    }
    return self;
}

-(void)backPressed:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    AVQuery *query = [AVQuery queryWithClassName:@"Known"];
    query.limit = 1;
    AVObject *post = [query getObjectWithId:@"55a1d7dbe4b005382bfeb9dd"];
//    NSLog(@"avos:  %@",[post valueForKey:@"Text"]);
    self.mainTextView.text = [post valueForKey:@"Text"];
    // 
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
